<?php

//判断是否为微信浏览器访问
function isWechat()
{
  if (stripos($_SERVER['HTTP_USER_AGENT'], 'Micromessenger') !== FALSE) {
    return true;
  } else {
    return false;
  }
}
